/* 
	该文件专门为组件生成action对象
*/

import { DelAction, AddAction, upDateAction } from '../types'
import { RootThunkAction } from '../../store'

/* export const delTodo = (payload: number): DelAction => {
  return {
    type: 'DEL_TODO',
    payload
  }
} */
/* export const delTodo = (payload: number): RootThunkAction => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch({
        type: 'DEL_TODO',
        payload
      })
    }, 1000)
  }
} */
